package com.lin.cms.domain;

import java.io.Serializable;

public class ChannelAttr implements Serializable {

	private static final long serialVersionUID = 1L;

	private int channelId;

	private String attrName;

	private String attrValue;

	public ChannelAttr() {
	}

	public int getChannelId() {
		return channelId;
	}

	public void setChannelId(int channelId) {
		this.channelId = channelId;
	}

	public String getAttrName() {
		return attrName;
	}

	public void setAttrName(String attrName) {
		this.attrName = attrName;
	}

	public String getAttrValue() {
		return attrValue;
	}

	public void setAttrValue(String attrValue) {
		this.attrValue = attrValue;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + channelId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final ChannelAttr other = (ChannelAttr) obj;
		if (channelId != other.channelId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"channelId=" + "'" + channelId + "'" + 
			")";
	}
	
}
